using Senparc.Weixin.Entities;
using Senparc.Weixin.MP.CommonAPIs;
using System;
namespace Senparc.Weixin.MP.AdvancedAPIs.MerChant
{
	public static class StockApi
	{
		public static WxJsonResult AddStock(string accessToken, AddStockData addStockData)
		{
			string urlFormat = "https://api.weixin.qq.com/merchant/stock/add?access_token={0}";
			return CommonJsonSend.Send<WxJsonResult>(accessToken, urlFormat, addStockData, CommonJsonSendType.POST, 10000, false);
		}
		public static WxJsonResult ReduceStock(string accessToken, ReduceStockData reduceStockData)
		{
			string urlFormat = "https://api.weixin.qq.com/merchant/stock/reduce?access_token={0}";
			return CommonJsonSend.Send<WxJsonResult>(accessToken, urlFormat, reduceStockData, CommonJsonSendType.POST, 10000, false);
		}
	}
}
